<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ng-model 单选按钮 ng-show</title>
    <script src="../angular.js"></script>
</head>
<body>
    <div ng-app="gg" ng-controller="ctrl">
        网站开启：
        <input type="radio" ng-model="status" ng-value="1">开启
        <input type="radio" ng-model="status" ng-value="0">关闭
        {{status}}

        <div ng-show="status==0">
            <h2>关闭原因：</h2>
            <p>系统正在维护中，十分钟后可以访问</p>
        </div>
    </div>

    <script>
        var mod = angular.module('gg', []);
        mod.controller('ctrl', ['$scope', function ($scope) {
            $scope.status = 1; //初始化状态值
        }])
    </script>
</body>
</html>